package com.itqf.ipmsys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itqf.ipmsys.dto.TrafficDto;
import com.itqf.ipmsys.dto.TrafficListDTO;
import com.itqf.ipmsys.entity.Traffic;
import com.itqf.ipmsys.vo.TrafficVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 交通状况表 Mapper 接口
 * </p>
 *
 * @author corn
 * @since 2021-09-22
 */
public interface TrafficMapper extends BaseMapper<Traffic> {

    List<TrafficVO> selectTrafficList(@Param("trafficListDTO") TrafficListDTO trafficListDTO, @Param("start") int start);

    Integer selectTrafficCount(@Param("trafficListDTO") TrafficListDTO trafficListDTO);

    TrafficVO selectTrafficDetail(Integer id);

    /**
     *
     * @param trafficDto
     * @return
     */
    List<String> findAll(@Param("trafficDto") TrafficDto trafficDto);

    List<String> selectAllName();
}
